home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / faq / comp / 386bsd_f / part3 < prev    next >
Internet Message Format  |  1994-04-01  |  68KB

  1. Path: bloom-beacon.mit.edu!hookup!news.moneng.mei.com!howland.reston.ans.net!news.cac.psu.edu!news.pop.psu.edu!ctc.com!news.mic.ucla.edu!ux1.lmu.edu!cynjut.ogisd.ess.harris.com!jocas-al.brooks.af.mil!hrd769.brooks.af.mil!not-for-mail
  2. From: burgess@hrd769.brooks.af.mil (Dave Burgess)
  3. Newsgroups: comp.os.386bsd.announce,comp.answers,news.answers
  4. Subject: [comp.os.386bsd] BNR/2 derived BSD for PCs FAQ (Part 3 of 10)
  5. Followup-To: comp.os.386bsd.misc
  6. Date: 31 Mar 1994 21:37:33 -0000
  7. Organization: Armstrong Laboratory, Brooks AFB, TX
  8. Lines: 1577
  9. Approved: news-answers-request@MIT.Edu
  10. Distribution: world
  11. Expires: 04/18/94
  12. Message-ID: <386bsd-faq-3-765149856@hrd769.brooks.af.mil>
  13. References: <386bsd-faq-1-765149856@hrd769.brooks.af.mil>
  14. Reply-To: 386bsd-faq@hrd769.brooks.af.mil (386bsd FAQ Maintainer)
  15. NNTP-Posting-Host: hrd769.brooks.af.mil
  16. Xref: bloom-beacon.mit.edu comp.os.386bsd.announce:308 comp.answers:4388 news.answers:17177
  17.  
  18. Posted-By: auto-faq 2.4
  19. Archive-name: 386bsd-faq/part3
  20.  
  21. Section 2.    (Common installation questions)
  22.  
  23.  
  24. 2.0    Install process
  25.     
  26.     The 386 BSD system is distributed in many ways.  One of the most 
  27.     common is via DOS diskettes, (either 3 1/2 or 5 1/4, both high 
  28.     density) with the actual distribution being a 'CPIO archive' broken 
  29.     into 240K pieces.  This allows the distribution to fit onto a 
  30.     minimum number of floppies. 
  31.     
  32.     Once the files are on floppies, thoughts usually turn to questions 
  33.     about how to install the boot image on a floppy.  The rawrite 
  34.     program (for DOS) is used to write the bootable images (dist.fs and 
  35.     fixit.fs) onto floppies.  The same image can used for 3 1/2 and 
  36.     5 1/4 high density diskettes.  Low density diskettes are not 
  37.     supported in this version of 386bsd.
  38.     
  39.     Once the bootable images are written onto the floppies, insert 
  40.     the dist.fs disk into the A: drive and reboot.  If the system does 
  41.     not boot, see section 2.5 below for more information.
  42.     
  43.     If the disk boots, type install and proceed to use the 
  44.     INSTALL.NOTES to get more information.
  45.     
  46.     Problems with the install are either related to hardware (i.e. Do 
  47.     you want to install on your T.V.?) or software.  Of the hardware 
  48.     issues, the most common FAQs are usually straight out of the 
  49.     installation notes.  Of the software issues, there are only two 
  50.     that really concern us.  The first is bad files.
  51.     
  52.     On some systems, files that are loaded from floppy appear to 
  53.     'go bad' when they arrive on the hard disk.  Try some of these 
  54.     solutions:
  55.  
  56.     - You forgot binary.  Don't get insulted.  Those of us that FTP 
  57.     for a living forget sometimes.  If so, the distribution will come 
  58.     out with all different sizes and install will complain about every 
  59.     disk.
  60.     
  61.     - One or two of the files are no good.  Try getting them again.  
  62.     As a  precaution, rename the bad files on your hard drive to names 
  63.     like foo.1 and bob.23.  Copy the files again from floppy.  If they 
  64.     are still bad, rename the file, and the one immediately before the 
  65.     first bad file (bin01.23 if bin01.24 is bad) and copy them again.  
  66.     If they are still bad, download those files again from the 
  67.     distribution site (including the one before and after the bad one) 
  68.     and try again.  
  69.         The reason for renaming the files is that sometimes, especially 
  70.     with drive that do not auto-magically record bad sectors, you could 
  71.     copy a distribution file onto a bad spot on the disk.  If this 
  72.     happens, you want to isolate the bad spot.  The easiest way to do 
  73.     that is just leave the bad file on it.
  74.     
  75.     - Keep trying, these same files have been used by literally 
  76.     thousands of people to install 386bsd.
  77.     
  78.  
  79. 2.0.1    Tiny boot disk  (versions and media formats)
  80.     
  81.     There is currently one official boot disk, referred to as the 
  82.     "Tiny" boot disk.  In addition, there is at least one patched 
  83.     unofficial boot disk available from agate and its mirror sites.
  84.  
  85.     There are a few FAQs from the boot/install disk.
  86.  
  87.  
  88. 2.0.1.1    Where does extract go when I reboot?
  89.     
  90.     It was in /tmp, which is cleaned the first time you reboot the 
  91.     system from the hard drive.  If you have just booted from the 
  92.     hard drive for the second time, chances are you just wiped out 
  93.     extract.  It is not really needed, since the instructions for 
  94.     building your own install are included in section 2.5.2 of 
  95.     the FAQ, under custom installation.
  96.  
  97.     When installing NetBSD, the set_tmp_dir and extract programs are 
  98.     part of the .profile that is booted when you are installing.  
  99.     This .profile is overwritten as part of the install process, and
  100.     extract then disappears.  If you need extract again, you can mount 
  101.     the install disk and source .profile.  This will recreate these 
  102.     two routines.
  103.  
  104.     There is also an install procedure that NetBSD uses that does
  105.     the same job.  It is defined as part of the .profile on one of the
  106.     installation floppies.  You can either copy it from there, or use
  107.     the procedure for 'real disk partitioning'.
  108.  
  109.     
  110. 2.0.1.2    I put the floppy in and try to boot, and nothing happens.  What now?
  111.  
  112.     This is usually referred to as the Compaq boot problem.  The easiest 
  113.     solution is to get a patched boot disk.  The normal source for this 
  114.     disk is agate (also known by its real name agate.berkeley.edu) in 
  115.     the directory /pub/386BSD/386bsd-0.1/unofficial/patchkit.
  116.  
  117.     Another source of possible hope for you is to grab the NetBSD bootable
  118.     disks.  They are compatible with 386BSD and allow you to install on
  119.     some of the more recalcitrant hardware.
  120.  
  121.  
  122. 2.0.1.3a    The floppy booted, but now the hard disk won't boot?
  123. 2.0.1.3b    I am trying to reinstall.  I run install and it loops asking
  124.               me if I want to use the whole disk?
  125.     
  126.     The most likely culprit is your hard disk controller.  It is 
  127.     probably doing some type of disk translation for you.  If this is 
  128.     the case (assume it is) then you will need to find out the real 
  129.     disk controller geometry, and rewrite your disk label.  See section 
  130.     2.6.2, but before doing that get the program pfdisk.exe from agate 
  131.     (It is out there, somewhere in the ~unofficial/ref-tfs stuff).  
  132.     This program will tell you what the controller geometry is (right 
  133.     before it reboots your computer).  Make the disklabel agree with 
  134.     this program and your system should boot.  You may have to 
  135.     reinstall, but at least your disklabel will be right.
  136.  
  137.     NOTE:  If the hard disk controller does NOT have an option for
  138.     turning off the geometry, you may well be completely out of
  139.     luck.  There are very few controllers that fall into this
  140.     category.  The ones that do full time translation will often
  141.     boot up in translated mode.  pfdisk will help you determine the
  142.     correct geometry for your drive by telling you what the geometry
  143.     looks like when 386bsd boots up.  
  144.  
  145.     But on the other hand, maybe not...
  146.  
  147.     See section 2.5.5 below for a detailed set of instructions about
  148.     getting NetBSD (and by implication 386BSD and FreeBSD) to work with 
  149.     a system that uses full time translation.
  150.  
  151.  
  152. 2.0.1.4    There are a bunch of flashing colored things on the screen.  Now what?
  153.     
  154.     See section 2.7 below.  It gives a rather detailed description of 
  155.     the cause and solution.
  156.  
  157.     
  158. 2.0.2    Fix-it boot disk 
  159.     
  160.     The fix-it disk contains a series of programs that are 
  161.     particularly handy for 'fixing' your disk in case you can't get 
  162.     logged in.  It includes the disklabel program and other utilities 
  163.     for system maintenance.
  164.  
  165.  
  166. 2.1    Binary distribution
  167.  
  168.     The binary distribution consists of virtually all of the programs 
  169.     that a typical Unix system would be expected to have.  The list 
  170.     includes mail, UUCP, GCC version 1.39, and others.
  171.     
  172.     Known problems with the binary distribution include the following:
  173.     
  174.     1.  Mtools as shipped in the bindist does not always work.  The 
  175.     ones on the install disk seem to work fine.
  176.     
  177.     2.  The install script built into the binary distribution does 
  178.     not correctly install all of the files and symbolic links that it 
  179.     should.  For example,  some of the symbolic links to the 
  180.     /usr/include directory are botched up.
  181.     
  182.     3.  'tip', the modem control program, does not always work right 
  183.     out of the box.
  184.     
  185.     4.  Any program that relies on a valid symbol table in the kernel 
  186.     (e.g. ps) will not work because the kernel is stripped so that it 
  187.     will fit onto the bootable disk.
  188.  
  189.     These problems are all cured either by patches available in the
  190.     patchkit, or through re-compilation.
  191.  
  192.  
  193. 2.2    Source distribution
  194.  
  195.     The source distribution contains all of the source code for every 
  196.     program in the bindist.  Known problems (which are fixed in the 
  197.     patchkit) include the following:
  198.     
  199.     1.  There is an error message during install about install.src01 
  200.     not being found.  It is not an error, there isn't an install.src01.  
  201.     Think of it as Bill and Lynne's idea of a practical joke.
  202.     
  203.     2.  There are several symbolic links that are not made correctly.  
  204.     In addition, there are several files that should have been deleted 
  205.     (to ensure clean 'make's) before the files were packed.  This is 
  206.     fixed by the patchkit, as of 0.2.3.
  207.       
  208.     3.  The /usr/src tree does not compile cleanly.  This is fixed by 
  209.     the patchkit, as of 0.2.3, or by NetBSD or FreeBSD. 
  210.     
  211.  
  212. 2.3    Additional software distribution
  213.  
  214.     The etc distribution contains source trees for many programs that 
  215.     are of interest to 386bsd users.  The complete ISO software 
  216.     development environment, as well as many additional software 
  217.     packages (and all of the games) are included in this distribution.
  218.  
  219.     The most common problem with the etc distribution is the error 
  220.     "too many files open".  Followed closely by "install.etc01 not 
  221.     found".  The latter is a annoyance (see above) but the former can 
  222.     be easily overcome in a couple of ways.
  223.     
  224.     The "too many files open" is a result of the "cat" command leaving 
  225.     files open after it has read a file.   Dwight E. Cass (his Email 
  226.     address is dec@lazarus.nrtc.northrop.com) has provided us with this 
  227.     anecdotal work around for his own experiences:
  228.     
  229.     --------------------------------------------------------------------
  230.     So - back to installation.  This time, when I get to the etc01 
  231.     partition, I am a bit more awake, so I run it from Csh (with the 
  232.     open file limit at 256).  Works pretty well - but complains at the 
  233.     end that it could not do the final configuration because it could 
  234.     not find the configuration file - I checked the MANIFEST and the 
  235.     file is not there, so I finally decided to ignore the message (but 
  236.     it was bothersome!)  Once etc01 was done - source was easy ... and 
  237.     I am now up and running, and quite impressed!!!
  238.     --------------------------------------------------------------------
  239.     
  240.     Another method is to use a loop construct in the Bourne shell.  For 
  241.     example:
  242.     
  243.     for i in (etc01.*)
  244.     do
  245.       cat $i
  246.     done | compress -d | cpio -idalmu
  247.  
  248.     -or-
  249.     
  250.     for i in (etc01.*)
  251.     do
  252.       zcat $i
  253.     done | cpio -idalmu
  254.     
  255.     will also solve the problem handily.  This solution solves the problem
  256.     by running cat multiple times, with one file each.  Since cat now only
  257.     has one file, there are no limits on the number of files that can be
  258.     used for the distribution set.
  259.     
  260. 2.4    Patch-kit
  261.     
  262.     The patchkit has been completely deprecated.  FreeBSD and NetBSD
  263.     are both mature programs that will serve the average user extremely
  264.     well.  The patchkit may still be available, but it os only required
  265.     if you are installing the original 386BSD 0.1 version.
  266.  
  267.     There are two mailing lists dedicated to the patchkit.  They are as 
  268.     follows:
  269.  
  270.     386bsd-patchkit@cs.montana.edu, which is primarily for discussion of
  271.     up-coming patches and patchkit philosophy.
  272.     
  273.     patches@cs.montana.edu, which is dedicated to submitting new,
  274.     untested patches.
  275.     
  276.     The current (and final) version of the patchkit is 0.2.4, which 
  277.     has absolutely no relationship with the new version of 386bsd.  
  278.     It is available by anonymous FTP from several sites throughout 
  279.     the net.
  280.  
  281.  
  282. 2.5    Configuration
  283.  
  284.     By far, the most common configuration questions are partitioning, 
  285.     followed closely by all of the other software in the system.  
  286.     Sendmail and named are also problems occasionally, but the 
  287.     documentation that comes with them usually gets you through.  If 
  288.     you run into a problem, post a question to comp.os.386bsd.questions.  
  289.  
  290.     
  291.     A less frequently asked question is "Where can I get info on how 
  292.     to configure a kernel?"  The answer to this question has been 
  293.     provided by Richard Murphey (Email address rich@Rice.edu).  
  294.     
  295.     --------------------------------------------------------------------
  296.     Ready-to-print PostScript files for each section of the net2 system 
  297.     maintainer's manual are on nova.cc.purdue.edu in 
  298.     pub/386bsd/submissions/bsd.manuals.
  299.     
  300.     smm.02.config.ps.Z describes kernel configuration for the VAX, 
  301.     however some of it is relevant to 386BSD.  There is no freely 
  302.     available rewrite for 386BSD that I know of.  
  303.     --------------------------------------------------------------------
  304.  
  305.  
  306.  
  307. 2.5.1    Partitions
  308.  
  309.     This section describes many of the questions that people ask about 
  310.     hard disk partitioning.
  311.     
  312.     The first is a brief explanation of the BSD system disk partitions.
  313.  
  314. 2.5.1.1    What is a 'disklabel' and why do I need one?
  315.  
  316.     The BSD partition table supplements the DOS partition table.  The 
  317.     entries in this table are meaningful to BSD.  There are eight 
  318.     partitions in the BSD partition table, and they are normally 
  319.     lettered from a: to h:.  This supplemental partition table is
  320.     often refereed to as the 'disklabel'.
  321.     
  322.  
  323.     This tutorial is provided by by "<haley@husc.harvard.edu>" and 
  324.     provides an  excellent overview of the hard disk partitioning 
  325.     procedure from start to finish.
  326.  
  327.         "Disk Partitioning for the Compleat Idiot"
  328.  
  329.     There are times, in our trials with our computers, that it becomes
  330.     necessary to mess about with the disklabel. For those not
  331.     knowledgeable of BSD or Unix Systems administration, this somewhat
  332.     simple task can be somewhat daunting. This document is the result of
  333.     my own short experience.
  334.  
  335.     This does not cover physical installation of the disk. For those who
  336.     are having trouble with that, I direct you to any of the fine manuals
  337.     dealing with hard drives and your hardware.
  338.  
  339.     It also does not deal with the vagaries of the DOS partition manager.
  340.     It assumes you have done that as well, if need be...
  341.  
  342.     After the drive is physically installed and is recognized in the BSD
  343.     startup, and it mentions both your drives, in the order you expect
  344.     them... Or perhaps just the one, if you had special problems with
  345.     installation. Now all you have to do is "disklabel" the drive... Well,
  346.     what is *THAT*??? 
  347.  
  348.     The disklabel is used by the kernel and other utilities to tell how
  349.     you want or have the drive set up *logically*. 
  350.  
  351.     In a beautiful world, we might have a very free hand at this set-up
  352.     and expect it to work. Unfortunately, the authors of the software
  353.     dealing with the hard drives either decided or were forced by
  354.     circumstance to make certain things about the disklabel inviolate. 
  355.     
  356.     When you let the installation disk set the disklabel for you first
  357.     drive it comes out like this:
  358.  
  359.         The a: partition is the primary partition.
  360.         The b: partition is the swap partition.
  361.         The c: partition is the amount of the disk used by 386bsd 
  362.             (swap and data)
  363.         The d: partition is the entire disk.
  364.  
  365.     Of these, the only one that could be different is a:... 
  366.  
  367.     (Note for those of us who have spent far too much time using DOS: the
  368.     labels a: b: c: d: e: f: g: h: DO NOT refer to DOS drives, but to
  369.     partitions in your 386bsd partition... confusing, eh?  For the sake 
  370.     of consistency I will never make a reference to DOS drives except by
  371.     saying something like "DOS drive C:". )
  372.  
  373.     It's possible to divide up the disk a bit differently, but three
  374.     things MUST be:
  375.  
  376.     c: must refer to every cylinder you wish 386bsd to use, either
  377.     for your data or the swap space. 
  378.  
  379.     d: Must refer to the whole disk, from cylinder 0 to the last
  380.     one...
  381.     
  382.     b: Should always refer to a swap partition. Note that on any
  383.     other than the first disk it does not have to, but if you
  384.     enable swapping on that drive, and you are using b: for
  385.     something else, that something else will be killed.
  386.  
  387.     The reason for this is simple: It's hard coded in.
  388.  
  389.     "WHY?" you ask? (I did...) Probably time constraints, maybe tradition.
  390.     But if you look at the code in "isofs" and "ufs" in your sys.386bsd
  391.     directory, you will see numerous comments asking some of the same
  392.     questions, which leads me to believe this may change in the future,
  393.     making our lives both more complicated and easier at the same time...
  394.  
  395.     Getting past the esoteric explanations, here is a method for figuring
  396.     out and "labeling" your disk.
  397.  
  398.     We'll start with the disklabel from my second disk, in the form most
  399.     understandable by humans... #'s signify the start of a comment.
  400.  
  401.     # /dev/rwd1d:
  402.     type: ESDI
  403.     disk: maxtor7245
  404.     label: 
  405.     flags:
  406.     bytes/sector: 512
  407.     sectors/track: 31
  408.     tracks/cylinder: 16
  409.     sectors/cylinder: 496
  410.     cylinders: 967
  411.     rpm: 3600
  412.     interleave: 1
  413.     trackskew: 0
  414.     cylinderskew: 0
  415.     headswitch: 0        # milliseconds
  416.     track-to-track seek: 0    # milliseconds
  417.     drivedata: 0 
  418.     
  419.     5 partitions:
  420.     #      size  offset  fstype [fsize bsize   cpg]
  421.       a:   198400       0  4.2BSD    512  4096    16     # (Cyl.    0 - 399)
  422.       b:    31744  447392    swap                      # (Cyl.  902 - 965)
  423.       c:   479136       0  unused      0     0           # (Cyl.    0 - 965)
  424.       d:   479136       0  unused      0     0           # (Cyl.    0 - 965)
  425.       e:   248992  198400  4.2BSD    512  4096    16    # (Cyl.  400 - 901)
  426.     
  427.     Some math:
  428.     Looking at the comments at the end and the size and offset columns,
  429.     size is a function of (last - first + 1) * sectors per cylinder:
  430.     a: 399 - 0 + 1 = 400 * 496 = 198400
  431.     b: 965 - 902 + 1 = 64 * 496 = 31744
  432.     c: & d: (Since I have no DOS partition, whatsoever)
  433.           965 - 0 = 1 = 966 * 496 = 479136
  434.     e: 901 - 400 = 502 * 496 = 248992
  435.     
  436.     248992 + 198400 + 31744 = 479136 (all the parts should equal the whole)
  437.     
  438.     Some things I discovered  (for all you in novice land like me...)
  439.     
  440.     1. As you can see this disk has 967 cylinders, but I only refer to 966
  441.     of them, 0 - 965... This is because it's good practice to leave the
  442.     "Landing Zone" cylinder out of it... This is usually the last
  443.     cylinder, and it's where the read/write heads hang out when your disk
  444.     is off...
  445.  
  446.     Note from TSgt Dave:
  447.  
  448.     Most modern drive heads come to rest on a polished surface inside the 
  449.     highest cylinder.  I could be mistaken, of course, and the Hard Drive 
  450.     Bible (or other appropriate reference manual) will tell the tale for 
  451.     each drive.
  452.  
  453.     2. a: can be a regular partition, b: should be swap, c: everything
  454.     386bsd will get to use, including swap. d: is the entire disk from 
  455.     0 - (cylinder_per_disk - 2)   [leaving out the Landing Zone]
  456.  
  457.     On the boot drive (The drive that actually contains the kernel), a: 
  458.     is the boot partition.  On all other drives, it is a regular partition.
  459.  
  460.     You can then use e - h for your other partitions. I am not sure
  461.     whether you could specify b: as other than a swap partition and not
  462.     run into trouble, but you could surely make it a zero sized one
  463.     starting and stopping on the Landing Zone...
  464.  
  465.     Note from TSgt Dave:
  466.  
  467.     This is a good idea.  Another way to accomplish this is to
  468.     simply not specify it in the map.
  469.  
  470.     3. Stupid human trick: When doing the math don't forget that 400 - 900
  471.     refers to 50*1* cylinders. I did, for a while. No great problem I
  472.     suspect, but why waste a cylinder...
  473.  
  474.     4. newfs'ing really is that simple if you have the label right:
  475.     "newfs /dev/rwd?x config_template" where the question mark is the 
  476.     physical disk, the x is a partition letter, and the config_template 
  477.     is the configuration from /etc/disktab for your disk drive. 
  478.  
  479.     * NOTE:  This is a thumbnail sketch; read the man page to verify all 
  480.     of the options and be sure about how to proceed...
  481.     
  482.     5. then fsck the partition: 
  483.     fsck /dev/rwd?x 
  484.     
  485.     Don't forget that fsck should be run on the RAW device.
  486.  
  487.     6. As long as it checks out, you can then mount it and do disk things
  488.     with it...
  489.  
  490.     7. Add it to the fstab... (follow the man page).  Don't forget 
  491.     that your new swap partition won't work if your kernel isn't 
  492.     configured for it, but it won't cause you any problem to have 
  493.     it there. 
  494.  
  495.     One last note from TSgt Dave:
  496.  
  497.     And I have yet to figure out a way to determine if it is or
  498.     isn't using the swap partition anyway.  There is a program called
  499.     'swapinfo' and it is part of the NetBSD source tree.  On my system, 
  500.     it tells me that I never use the swap area. :)
  501.  
  502.     Comnonly used definitions:
  503.  
  504.     bsize:
  505.     Block Size:  This is the smallest allocatable area on a disk file 
  506.     system, sort of.  A file uses the maximum amount of blocks until it
  507.     can not completely fill up a block. 
  508.  
  509.     fsize:
  510.     Fragment Size:  This is the size of the 'leftover' data that didn't
  511.     fit into a full block.  For example, assuming a using an 8K Block
  512.     Size/1K Fragment Size, a 34.5K file, would use up 4-8K Blocks (4 *
  513.     8K = 32K) and 3 1K fragments (3 * 1K = 3K).  There is 512 bytes of
  514.     wasted space, since 32K + 3K = 35K, which is 512 bytes larger than
  515.     34.5K.  If you want to reduce the amount of wasted space, you can
  516.     reduce your fragment size, but you also reduce the amount of data
  517.     you read at one time, so your disk performance decreases also.
  518.     A good setup is 8K/1K for performance, but if you are really
  519.     concerned about wasted space you can consider using a 4K/512byte
  520.     filesystem.
  521.  
  522.     For further information, find an article that explains the Berkeley
  523.     FFS in more detail.
  524.  
  525.     cpg:
  526.     Cylinders Per Group, it determines the cylinder group size, which 
  527.     in turn determines the number and location of the alternate 
  528.     superblocks.
  529.  
  530.  
  531.     Cgd posted a description of how to manually install 386bsd and 
  532.     create 'real' BSD partitions.  It is excerpted below:
  533.     
  534.     --------------------------------------------------------------------
  535.     HOW TO GET 386bsd 0.1 INSTALLED WITH "REAL" PARTITIONING:
  536.     
  537.     (remember, if things don't work, they might be in places that aren't 
  538.     normally looked in... things should work as below, but you might 
  539.     have to use explicit paths occasionally... the 'better' stuff -- 
  540.     mount, umount, cp, etc... is in /usr/distbin on the fixit floppy...  
  541.     even mknod is there, if the devices you need aren't on the fixit 
  542.     floppy...) 
  543.  
  544.     (1) boot the fixit floppy
  545.     (2) disklabel the disk as appropriate
  546.     (3) newfs the partitions
  547.     (4) mount the new root partition under /mnt
  548.     (5) mkdir /mnt/usr
  549.     (6) mount the new /usr partition under /mnt/usr
  550.  
  551.     (7) cpio the entire contents of the fixit floppy to the hard drive
  552.         cd /
  553.         ls .profile * [0-ln-z]*/* */*/* | cpio -pdalmu /mnt
  554.         (NOTE: [0-ln-z]*/* is to avoid matching mnt/mnt)
  555.     (8) copy /usr/distbin/mount and /usr/distbin/umount to /mnt (so that
  556.         they'll be in the new root partition, so you can mount the
  557.         new /usr partition...)
  558.     (9) shutdown
  559.         and the eject the floppy.
  560.     (10) reboot off the hard drive, then fsck -p <root raw device>
  561.         If there are any errors, after the fsck is done, hit
  562.         ctl-alt-delete, and repeat this step.
  563.     (11) fsck -p <usr raw device>
  564.     (12) mount -u <root device> /
  565.     (13) mount <usr device> /usr
  566.     (14) insert 0.1 boot/install floppy (dist.fs) into floppy drive
  567.         and "mount /dev/fd0a /mnt"
  568.     (15) cd /mnt
  569.         and then
  570.         usr/bin/zcat etc/baselist.Z | usr/bin/cpio -pdalmu /
  571.     (16) cd /
  572.         and then
  573.     /mnt/usr/bin/zcat /mnt/etc/baseutils.cpio.Z | /mnt/usr/bin/cpio -idalmu
  574.     (17) umount /mnt    then eject the floppy
  575.     (18) umount /usr
  576.     (19) shutdown
  577.     (20) reboot off the hard drive, and get all of the various files (the
  578.         bindist files, srcdist files, etc...).
  579.         I put them into /usr/tmp, because there wasn't enough space
  580.         in /tmp (because it was on a small root partition...).
  581.     (21) cd / ; cat <all the binary files> | uncompress | cpio -idalmu
  582.     (22) rm <all the binary files>
  583.     (23) put your hostname into "/etc/myname" and put your ip addr/hostname
  584.         into /etc/hosts.
  585.     (24) make an fstab for yourself.  specifically, you want something like:
  586.         <root device name>    /    ufs rw 1 1
  587.         <usr device name>    /usr    ufs rw 1 2
  588.     
  589.     congratulations!  you now have a working system!
  590.     
  591.     you can repeat step 21 for the srcdist and etcdist files, as well, 
  592.     if you wish...
  593.  
  594.  
  595. 2.5.2    Common Disk Label Problems.
  596. 2.5.2.1    Swap space.
  597.  
  598.     Nate Williams provides a short tutorial on swap space in 386bsd, 
  599.     excerpted below:
  600.     
  601.     To be able to use additional swap partitions, you need to specify 
  602.     them in the config (/sys/i386/conf/WHATEVER) file.
  603.     
  604.     Ex:
  605.     
  606.     config          "386bsd"        root on sd0 swap on sd0 and sd1
  607.     
  608.     Allows swap on sd0 and sd1
  609.     
  610.     config          "386bsd"        root on wd0 swap on wd0 and sd0
  611.     
  612.     This would allow swap on both wd0 and sd0 OR whichever (both/either) 
  613.     of the two had a valid disklabel.  Note, you can really screw 
  614.     yourself up with this, if you should happen to not want to swap to 
  615.     this partition, and it happens to be the first one found...
  616.     
  617.     The problem of not being able to swap was from the config file not 
  618.     having wd1 in it.
  619.     
  620.     controller      wd0     at isa? port "IO_WD1" bio irq 14 vector wdintr
  621.     disk            wd0     at wd0 drive 0
  622.     disk            wd0     at wd0 drive 1
  623.                     ^^^                  
  624.     This should have been wd1, and that's why it didn't get added by 
  625.     default.  I may be wrong, but I have swapped to two different 
  626.     partitions w/out any problems since patchkit 0.1, and there aren't 
  627.     any patches to swap386bsd.c
  628.        
  629.     Once the install is complete, swapping will not be enabled on the 
  630.     second drive.  The following steps can be used to make sure that it 
  631.     is enabled correctly.
  632.     
  633.     If there is a 'b' partition in your root disk 386bsd partition, it 
  634.     will be used automatically (MAKE SURE B is not the start of the 
  635.     disk, and MAKE SURE b doesn't contain any data you wish to keep).  
  636.     If b starts at disk offset 0, it will promptly wipe out your boot 
  637.     sectors and other important disk stuff.  (This appears to be fixed
  638.     in the current NetBSD sources)
  639.     
  640.     If you want an additional partition, put an entry similar to this 
  641.     in /etc/fstab:
  642.     
  643.     /dev/sd1b    none            swap        sw
  644.     
  645.     I'm swapping on sd0b and sd1b, and 'swapon' is run on this partition 
  646.     on boot up.
  647.     
  648.     Swapping to a file is still not implemented.  Rumor has it 0.2 will 
  649.     have such things.  If someone wanted to add it, the vnops_* files 
  650.     would have to be radically modified to get it to work correctly.
  651.  
  652.  
  653. 2.5.2.2    Increasing the 386bsd partition size.
  654.  
  655.     Once the install is finished, the system has it's 386bsd partition.
  656.     This includes a 5Meg swap partition, which is altogether too small.  
  657.     There is no easy way to increase this swap partition without 
  658.     relabeling the drive.   Unfortunately, relabeling usually involves 
  659.     reinstalling.  That involves re-doing just about everything you have 
  660.     just finished doing.  The good news is that if all you have done is 
  661.     the base installation, you don't have a lot of time and energy 
  662.     invested in the system.  Take the time, and make sure that your swap 
  663.     space is at least as big as your memory; many people recommend even
  664.     larger.  There is no real limit to the size that this space can
  665.     take.  If you have two disk drives, you can have space space on both.
  666.     Simply follow the instructions above, and you will be all set.
  667.     If your swap space is smaller than your real memory, system core 
  668.     dumps will be disabled.
  669.  
  670.  
  671. 2.5.2.3    I can access the DOS partition on my second disk from Unix but not 
  672.     DOS?  Any suggestions?
  673.  
  674.     One kinky problem that almost got me was when I tried to disklabel 
  675.     my second drive in order to use the DOS partition on it, and use 
  676.     the rest as swap for BSD (FreeBSD-1.0 Eps, SCSI drive on an AHA1542B, 
  677.     to be exact). The DOS partition was visible from UNIX, but *not* from 
  678.     DOS.
  679.  
  680.     What I tried to do:
  681.         Using PFDISK (from DOS), make one big DOS partition at the start 
  682.         and use the rest for a BSD partition (type 165).  Something that 
  683.         came out like
  684.           1    6    0    69 DOSbi # ..
  685.           2    165  70    98 unkno
  686.         for a 99 cyl drive.
  687.  
  688.     
  689.         Using BSD disklabel generate disk description/label as documented 
  690.         in the FAQ. Make only 'c' (total BSD DOS part), 'd' (complete disk) 
  691.         and 'b' (intended swap) BSD partitions.
  692.  
  693.     Problem:
  694.         When writing the label, disklabel would ask about overwriting DOS
  695.         partition table.  Whether I said y or n, the DOS partition table
  696.         was screwed up, as seen from DOS (BSD saw the DOS file system
  697.         very nicely indeed).
  698.  
  699.     Cause, solution:
  700.         BSD disklabel wants to write the label to the start of the 'a' 
  701.         partition; I had *not* defined an 'a' partition (since I was 
  702.         only using the disk for swap).  This tells disklabel that the 'a'
  703.         partition is the start of the disk, which means there is no DOS
  704.         partition.  Disklabel then writes the label at the start of the 
  705.         drive, which is why it talks about overwriting (aha!); this is 
  706.         *bad* for the DOS partition table.  One solution is to have a 
  707.         non-empty (e.g. one cylinder) 'a' partition at the start of the 
  708.         BSD part of the disk, and resize the 'b' swap partition 
  709.         accordingly.  Now everything works just fine.
  710.  
  711.         One other fly in this ointment.  The disklabel program has 
  712.         historically asked "Overwrite disk with DOS-partition [n]: "
  713.         then the normal inclination is to believe the prompt and
  714.         press return for 'no'.  The default answer may or may not be
  715.         'no'.  There are several versions of disklabel where the
  716.         default answer is actually 'yes' even though the prompt
  717.         implies that you can press return and get 'no'.  In this case,
  718.         it might be best to assume that the default answer doesn't 
  719.         exist until you have had a chance to actually look at the
  720.         disklabel code.
  721.  
  722.  
  723. 2.5.3    How do I set up the system so that I can boot from more than one
  724.     operating system/file-loader without using floppies?
  725.     
  726.     There are many people that wish to be able to boot DOS or 386bsd 
  727.     at will.  There are several programs that allow this.  The 
  728.     program "os-bs" is one such program, "BOOTEASY" is another, and 
  729.     there are three or four others.  There are problems in some 
  730.     configurations using the os/2 boot manager for this, so beware.  
  731.     
  732.     In addition to being able to boot from either of two partitions, 
  733.     some people want to operate more than one disk drive (and perhaps 
  734.     boot from either as well).  Christoph Robitschko provided one 
  735.     description of this.  Since there are virtually limitless 
  736.     possibilities for configurations for BSD systems, it will be 
  737.     impossible to answer all of the possible questions about these 
  738.     features.  Many people operate with multiple disk drives on one 
  739.     or more controllers.  
  740.  
  741.     Yu-Han Ting provides this tutorial on partitioning and booting
  742.     multiple systems with a single hard disk.
  743.  
  744.     After spending one day fighting with the nasty partition table, 
  745.     finally I had NetBSD, DOS 5 (Sorry, I don't use DOS 6), and 
  746.     OS/2 2.1 March beta co-existing on my hard drive.  Here is the 
  747.     answer:
  748.  
  749.     Since that my original hard disk setup was corrupted by NetBSD's
  750.     installation program, I decided to rebuild it.  I would like my 
  751.     partition table looks like this:
  752.  
  753.     Partition 0: OS/2 2.1 beta (Primary, HPFS, C:)
  754.     Partition 1: MS-DOS 5.0 (Primary, C:)
  755.     Partition 2: MS-DOS 5.0 (Extended, D: & E:)
  756.     Partition 3: NetBSD
  757.  
  758.     You will need the following tools before you can setup a similar 
  759.     environment:
  760.  
  761.     1) Mr. Wolfram's OS-BS.  (It's an excellent boot selector, much
  762.        better than OS/2's boot manager, IMHO)
  763.     2) PFDISK.EXE.  (It's available from wuarchive.wustl.edu:mirrors/
  764.        linux/dos_utils/pfdisktc.zip.)
  765.     3) A binary editor.  I use Norton Utilities' DiskEdit.
  766.     4) 386BSD's 'tinyBSD' distribution disk.
  767.  
  768.     After you have the necessary tools handy: 
  769.  
  770.     1) Use OS/2 'fdisk' to create partition 0.  Make it install-able 
  771.        and install the system as usual.
  772.     2) Use OS/2 'fdisk' to create partition 1.  Assign drive C: to 
  773.        the partition.  Then reboot from DOS.
  774.     3) Use DOS 'fdisk' to create the extended partition.  Assign logical
  775.        drive D and E to the partition.
  776.     4) Reboot from DOS again.  Format drive C: (for DOS), D:, and E:.
  777.     5) Use 'tinyBSD', NOT 'NetBSD', to boot the machine.  Create a genuine
  778.        386BSD partition.  Once the 386BSD partition has been made,
  779.        boot DOS from floppy and execute PFDISK.EXE.  For example, issue
  780.        the following commands once you get into DOS:
  781.  
  782.         C>pfdisk 0 <enter>
  783.         pfdisk> L <enter>  ("pfdisk>" is the command prompt and "L"
  784.                     is the actual command.)
  785.  
  786.        The second line, i.e., command 'L', will tell you the starting
  787.        address and the length of each partition you have.  Record the
  788.        information for step 6.
  789.     6) Reboot NetBSD from floppy.  Install NetBSD over the original
  790.        386BSD partition.  Fill out the information you get from step
  791.        5 to the installation program.  'halt' the system after you
  792.        have installed 'install2.fs'.
  793.        (Ed.Note:  This step is the same for 386bsd or NetBSD)
  794.     7) Boot OS/2 from floppy.  Use fdisk to assign drive C: to the OS/2
  795.        partition.  In my case, partition 0.  Note that fdisk will
  796.        change the ID of partition 1 from '0x06' to '0x16'.  '0x06'
  797.        stands for 16-bit DOS FAT; while '0x16' stands for non-DOS
  798.        partition.  In the next step, we have to change '0x16' back to
  799.        '0x06' manually.  You can get the ID information by issuing "I"
  800.        under PFDISK.  It will tell you what the IDs represent.
  801.     8) Boot DOS from floppy.  Use the binary editor to change the
  802.        partition type as stated in step 7.
  803.     9) Install OS-BS under DOS.  Remember to enable "Modify startup ID
  804.        before booting".
  805.     10) Now you can boot any partition w/o floppy diskettes during
  806.         startup. :)
  807.  
  808.     The above procedures may not be optimized.  But it works for me.  
  809.     I won't spend anytime to deal with tedious work again :)
  810.  
  811.     You might feel strange why we need 'tinyBSD'.  Simply trust me.  
  812.     By using 'tinyBSD' to create a partition for NetBSD, it will 
  813.     make your life a lot easier.  Hope this helps.  
  814.  
  815.     Ed. Note:  The reason is because several versions of NetBSD and 
  816.     FreeBSD will not label a disk that doesn't have a disklabel.  
  817.     Catch-22.
  818.  
  819.  
  820.     PS:  %%%%% REMEMBER TO BACKUP YOUR SYSTEM BEFORE YOU CONDUCT THE 
  821.             EXPERIMENT !!! %%%%%
  822.  
  823.     Here is Christoph's explanation of how to set up a dual hard drive
  824.     system so that the 386BSD/NetBSD system is stored entirely on the
  825.     second hard drive.
  826.  
  827.     I have done this with two IDE drives. IDE+SCSI should be a bit 
  828.     simpler.  There's a boot selector called BOOTEASY that can load 
  829.     from the second drive (you can get it from 
  830.     ftp.tu-graz.ac.at:pub/386BSD/0.1/unofficial/booteasy).
  831.  
  832.     What I have done to boot 386bsd from the second (IDE) drive:
  833.  
  834.     - installed booteasy on the first drive
  835.     - (you can install booteasy on the second drive, too, if you
  836.       have multiple partitions there)
  837.     - modified Julian's boot blocks to use the second drive per default
  838.       (Ed. Note:  See below for the illumination of this step)
  839.     - rebuilt the kernel to have root and swap on wd1 (probably not
  840.       necessary for you, since your second disk is sd0, which is
  841.       already in the config file).
  842.  
  843.     It worked perfectly for me.
  844.  
  845.     This should also work with equal facility for 386bsd users.
  846.  
  847.     Julian Elischer (julian@jules.dialix.oz.au) adds:
  848.  
  849.     To make the bootcode default to drive 1 look in 
  850.     /sys/{arch/}i386/boot/boot.c for the following (or similar.. It has 
  851.     changed a little) code:
  852.  
  853. loadstart:
  854.  
  855.     /***************************************************************\
  856.         * As a default set it to the first partition of the first    *
  857.         * floppy or hard drive                        *
  858.       \***************************************************************/
  859.         part = unit = 0;
  860.         maj = (drive&0x80 ? 0 : 2);             /* a good first bet */
  861.         name = names[currname++];
  862.  
  863.  
  864.     and change it to:
  865.  
  866.  
  867. loadstart:
  868.  
  869.     /***************************************************************\
  870.     * As a default set it to the first partition of the SECOND    *
  871.     * floppy or hard drive                        *
  872.     \***************************************************************/
  873. !    part = 0;
  874. !    unit = 1;
  875.     maj = (drive&0x80 ? 0 : 2);             /* a good first bet */
  876.     name = names[currname++];
  877.  
  878.     And in yet another interation, Luke Mewburn (lm@yallara.cs.rmit.oz.au)
  879.     decided to hack that a bit further in his NetBSD 0.9 (as_shipped i.e., 
  880.     non-current) to set the drive to the unit which the boot blocks 
  881.     loaded off.
  882.  
  883.     So, instead of:
  884.         part = unit = 0;
  885.     do:
  886.         part = 0;
  887.         unit = (drive & 0x7F);
  888.  
  889.     (the FAQ suggests `part = 0; unit = 1;' )
  890.  
  891.         This way, whatever drive the bb's loaded from, it has that as
  892.     default.  In my case, I get wd(0,a) when I have my netbsd drive as
  893.     C:, and wd(1,a) when I have it as D:.  (I've been swapping drives
  894.     left right and centre the last day getting dos to boot on one drive
  895.     and netbsd on another).
  896.  
  897.  
  898. 2.5.4    How do I disklabel my second hard drive?
  899.  
  900.     The obvious answer is to use 'disklabel -w -r /dev/rwd1d'.  
  901.     Unfortunately, this does not always put a real disklabel on the
  902.     drive.  The symptom is that the drive labels and can be used
  903.     until the system is reset, at which point the system tries to
  904.     read the label from the disk.  It was never actually written to 
  905.     the disk, so the operation fails.
  906.  
  907.     There are also reports that the /usr/mdec files are corrupted in 
  908.     some of the distributions.  If you have tried everything else, you
  909.     can either load the files from one of the many archive sites that
  910.     keep the /usr/mdec files around, or you can recompile them 
  911.     yourself.
  912.  
  913.     Mark Weaver (mhw@cs.brown.edu) provides us with an illuminating
  914.     answer to this perplexing problem.
  915.  
  916.     I had the same problem and there is a simple solution.  I'm not 
  917.     sure why this works, but it does.
  918.  
  919.     Instead of specifying the entire device path name (i.e. /dev/rsd0c), 
  920.     only specify the two letters of the device type and the unit number 
  921.     (i.e. "sd0").  Disklabel figures out the rest, and it works.
  922.  
  923.     For instance, the following line works for me:
  924.  
  925.       disklabel -w -r sd0 <drive-type>
  926.  
  927.     assuming of course that the boot block files are in /usr/mdec/ and
  928.     the <drive-type> is in the /etc/disktab.
  929.  
  930.     This is also a symptom of some of the versions of FreeBSD and 
  931.     NetBSD where the disklabel code was 'fixed' to only write a 
  932.     disklabel on a drive with a disklabel.  Oops.
  933.  
  934.  
  935. 2.5.5    386bsd/NetBSD/FreeBSD cannot handle disk geometry translations, 
  936.     but it turns out that my disk geometry is translated.  It has 
  937.     five zones, each with a different sec/track!  What kind of 
  938.     things can I do about the disk translation my hard disk 
  939.     controller uses?
  940.  
  941.     It turns out that what *BSD cannot handle is not translation, but
  942.     translation that changes during the boot-up process.  For example,
  943.     the configuration above will work just fine IF the translation
  944.     that the controller uses when it powers up is the same one that it
  945.     uses when it boots.  On many PC clones, the BIOS loads a different
  946.     geometry after it boots to make the geometry agree with one that is
  947.     loaded in CMOS.  This is the fatal flaw for *BSD.  Fortunately, 
  948.     once the problem has been identified, it is relatively easy to
  949.     handle.  Simply make sure that the BIOS is configured to set the
  950.     controller to the translated geometry that the card powers up 
  951.     with.
  952.     
  953.     There are several ways to get around these problems with disk 
  954.     geometry translation.  If you are using a SCSI controller, you can
  955.     specify the geometry such that each 'cylinder' is 1 Meg (64 sectors
  956.     by 32 tracks for example).  Most SCSI controllers will blithely
  957.     ignore what YOU tell it the geometry is and press on using this
  958.     type of 1 Meg cylinder had to get the job done.  NOTE:  If you are
  959.     going to try this, try to ensure that each 'pseudo cylinder' is a
  960.     reasonable size (like 1Meg or 512K).
  961.  
  962.     An interesting method for dealing with disk geometry comes from 
  963.     Alan Barrett (barrett@lucy.ee.und.ac.za):
  964.  
  965.     This sort of problem happens when you try to install NetBSD in a
  966.     partition of a disk whose controller does geometry translation.  I
  967.     have not had time to find the bug that causes the problem.  One 
  968.     option is to disable the geometry translation:  Use ide_conf to 
  969.     find the true geometry, use the CMOS setup program to tell your 
  970.     BIOS about the true geometry, and reformat everything.  I 
  971.     successfully did that on one of my systems.
  972.     
  973.     If you are not able to, or do not wish to, disable the geometry
  974.     translation then the following work-around might work for you.  
  975.     This requires that the disk have unused space on {cylinder 0, 
  976.     head 0}, from sector 2 to sector 16.  Almost all DOS disks that 
  977.     I have ever seen satisfy this condition, because they usually 
  978.     start the DOS partition in {cylinder 0, head 0, sector 1}, 
  979.     leaving most of {cylinder 0, head 0} unused apart from the 
  980.     partition sector in {cylinder 0, head 0, sector 1}.  However, 
  981.     many partitioning programs like to hide this fact from you, 
  982.     and pretend that the DOS partition starts at the front of the 
  983.     disk; don't believe them until you have checked with a raw 
  984.     disk editor.
  985.  
  986.         0.  Make sure you have adequate backups.
  987.  
  988.         1.  Use a partition sector editor (fdisk, pfdisk, os-bs, 
  989.             booteasy, Norton utilities, whatever) to mark the partition 
  990.             that you want for NetBSD as bootable with type 0xA5 
  991.             (decimal 165).
  992.  
  993.         2.  Halt the system.  Boot the NetBSD kernel copy floppy.  
  994.         When it asks you to insert the floppy for the root file 
  995.         system, switch to the Install-1 floppy and press enter.
  996.  
  997.         3.  Answer all the installation prompts, using numbers based 
  998.         on the translated geometry.  When it asks if you really 
  999.         want to label the disk, be brave and say yes.
  1000.  
  1001.         4.  Halt the system.  Boot to DOS.  Run a disk editor program, 
  1002.         such as Norton utilities.
  1003.  
  1004.         5.1.  Verify that the partition sector in {cyl 0, head 0, 
  1005.         sec 1} is undamaged.  Verify that the disklabel program 
  1006.         run as part of the NetBSD install has written the NetBSD 
  1007.         primary boot block to {cylinder xx, head 0, sector 1}, 
  1008.         written the disk label to {cyl xx, head 0, sec 2}, and 
  1009.         written the secondary boot program to {cyl xx, head 0, 
  1010.         sectors 3 to 16}.  ("xx" represents the translated 
  1011.         cylinder number you chose for the start of the NetBSD 
  1012.         partition.  You did choose to start on a cylinder boundary, 
  1013.         I hope.)
  1014.  
  1015.         5.2.  Verify that the space in {cyl 0, head 0, sectors 2 to 
  1016.         16} is still available.  Copy the fifteen sectors containing 
  1017.         the NetBSD disk label and secondary boot block from {cyl 
  1018.         xx, head 0, sectors 2 to 16} to {cyl 0, head 0, sectors 2 
  1019.         to 16}.
  1020.  
  1021.         5.3.  Edit the partition table in {cyl 0, head 0, sec 1}.  
  1022.         Change the system ID of the NetBSD partition from 0xA5 
  1023.         (decimal 165) to something else (I use 0xA4, decimal 164), 
  1024.         but keep it flagged as bootable.  This will let you boot 
  1025.         to the NetBSD primary boot block.
  1026.  
  1027.         5.4.  Edit one of the previously unused partition table entries 
  1028.         (I hope you have one), to contain the following information: 
  1029.         {sys id = 0xA5, boot flag = 0, start cylinder/head/sector = 
  1030.         0/0/1, end cylinder/head/sector = anything, initial 
  1031.         offset = 0, total size = anything}.  This will tell the 
  1032.         NetBSD primary boot block, or a NetBSD system booted from 
  1033.         a floppy, that it should look for the NetBSD disk label 
  1034.         in {cyl 0, head 0, sec 2}.
  1035.  
  1036.         6.  Halt the system.  Boot the NetBSD kernel copy floppy.  When it
  1037.             asks you to insert the floppy for the root file system, just 
  1038.             press enter without changing disks.
  1039.  
  1040.         7.  Copy the kernel, and proceed with the rest of the installation 
  1041.             as per the instructions provided with NetBSD.  It should now 
  1042.             work because of the trickery with the partition table etc.
  1043.  
  1044.  
  1045. 2.6    Common installation problems.
  1046.  
  1047.     There are many common installation problems.  This section covers
  1048.     the most basic and common of these problems.  In addition to this
  1049.     section, you should also read through the other sections of the
  1050.     FAQ, since many of the less common questions are answered in other
  1051.     places in the doc.
  1052.  
  1053. 2.6.1    Swap space not identified correctly.
  1054.     
  1055.     There are several levels of problems associated with swap space.  
  1056.     The first is that the swap space on a second disk will not get 
  1057.     used if it is not in your /etc/fstab file.  Your /etc/fstab should 
  1058.     have the swap space identified.  The following is a representative 
  1059.     fstab:
  1060.     
  1061.     /dev/wd0a        /        ufs  rw 1 1
  1062.     /dev/wd1b        swap        swap sw 0 0
  1063.      
  1064.     Another common question is that the install program installs the
  1065.     swap partition in the 'b' partition, but does not mark it correctly
  1066.     as a swap partition.  The swapping software will use the swap 
  1067.     partition regardless of what it is called, but it should still be
  1068.     identified in the disklabel as the swap partition.  Use 'disklabel'
  1069.     to change the partition type from 'unused' to 'swap'.
  1070.  
  1071.     NOTE:  I mean it when I say that 386bsd will use the b: partition
  1072.     for swap without regard to what you called it.  If it was your 
  1073.     root partition, it will be toast the first time you try to swap
  1074.     a process out to disk.  I'm not kidding!
  1075.  
  1076.  
  1077. 2.6.2    Endless reboot cycles.
  1078.     
  1079.     Endless reboot cycles are the single most vexing aspect of 386bsd.  
  1080.     Part of the problem is that the 0.1 distribution boot routines 
  1081.     were never checked against many types of computers and have bugs.  
  1082.     Most of the bugs are fixed in the patchkit, but that doesn't do 
  1083.     the average novice user any good.
  1084.     
  1085.     In general, this will show up as a "bad disk label" error, and 
  1086.     can result in in not booting from the hard drive "most of the time".  
  1087.     You may be able to partially (or even completely) work around this 
  1088.     problem by making your machine run at a lower clock rate.
  1089.  
  1090.     This problem is the result of the kernel reading the wrong register 
  1091.     waiting for the drive controller to come ready.  On some 
  1092.     controllers, this isn't a problem; on others, it's fatal.
  1093.     This problem is solved for almost all controllers in the patchkit
  1094.     and both FreeBSD and NetBSD.
  1095.  
  1096.     The correct solution is to use a patched "dist.fs" or "fixit.fs" 
  1097.     boot disk.  These have been provided by the patchkit maintainers 
  1098.     and are located on the machine agate.berkeley.edu in the directory 
  1099.     pub/386BSD/386bsd-0.1/unofficial/patchkit.  In addition, new
  1100.     patches kernels or a NetBSD kernel may be able to solve your 
  1101.     immediate problems.
  1102.  
  1103.     Another incarnation of this symptom is that the disk geometry on 
  1104.     your disk label (as installed by install) is different than the 
  1105.     geometry that your hard drive controller thinks it is using.  This 
  1106.     will most often manifest itself on controllers that insist on 
  1107.     operating in some type of translation mode.  Normally the fix is to 
  1108.     find out what the controller geometry is and make the disk label 
  1109.     agree.  There are programs available to help with this problem.  
  1110.  
  1111.     Julian's new boot blocks may also solve this problem.  They are 
  1112.     available where fine precompiled kernels may be found.  Also, they
  1113.     are included in the patchkit as of version 0.2.2.
  1114.  
  1115.  
  1116. 2.7    The computer just sits there, or 'that isn't right'.
  1117.     
  1118.     This class of problems is sometimes caused by an incorrect FTP of 
  1119.     the boot disk.  Make sure that the files were grabbed in 'binary' 
  1120.     mode and that the size reported back is 1244000 bytes.  Use the 
  1121.     Unix program 'dd' or the DOS program RAWRITE to put these files 
  1122.     onto the diskette.  In addition, this is the 'miscellaneous' 
  1123.     section of the FAQ.  These problems are included here because they
  1124.     are usually preceded by 'I just finished installing...'
  1125.  
  1126.  
  1127. 2.7.1    The boot disk works all right on one computer but not another. 
  1128.  
  1129.     This could be a problem with many different pieces, some of which are: 
  1130.  
  1131.     - Misconfigured hardware.  The iomem, IRQ, and other board settings 
  1132.     must match the ones listed in the INSTALL.NOTES.  Unfortunately, the 
  1133.     INSTALL.NOTES are on the disk that will not boot.  You can grab them 
  1134.     via FTP from /pub/386BSD/386bsd-0.1/filesystem.
  1135.  
  1136.     - Unsupported hardware.  There are several SCSI controllers on the 
  1137.     market that are not fully supported by 386bsd.  The Ultrastore 24F 
  1138.     (when not running in ISA emulation mode) is a good example of this.  
  1139.     There are also some network cards that are not directly supported 
  1140.     in 386bsd.  If you get into a real bind, you can post a question 
  1141.     to comp.os.386bsd.questions, and one of the many experienced 386bsd 
  1142.     gurus that reads that group will probably try to help you.
  1143.  
  1144.     
  1145. 2.7.2    The screen has "flashing multicolored characters and ptdi81061 
  1146.     prompt" error?
  1147.     
  1148.     The problem is that the code checking the return from the read of 
  1149.     the CMOS RAM value falls through in the case of an invalid value.  
  1150.     What really is needed is the non-existence "else" case for a bad 
  1151.     CMOS setup, which goes and probes memory to see it's size.  What 
  1152.     currently happens is that the code falls through, the Maxmem is 
  1153.     set to zero, and the maxmem and physmem are set to -1 (this is a 
  1154.     bad thing).
  1155.     
  1156.     To solve this, Terry Lambert wrote a program in (forgive him!) 
  1157.     Turbo C to read and write CMOS values, so that he could force the 
  1158.     memory count to the correct value.  For a machine with a base 
  1159.     memory of 640K, the expected value in CMOS is 0280 (in bytes 
  1160.     0x16 and 0x15, respectively).  What the AT&T boxes and the HP 
  1161.     Vectra have is 027f, so it falls through to the default case and 
  1162.     blows up.
  1163.     
  1164.     The quick and dirty work-around:  If you download the new patchkit 
  1165.     bootables from agate.berkeley.edu they have fixed these problems.  
  1166.     If not, you can use uzap (available for anon ftp from 
  1167.     wuarchive.wustl.edu, located at mirrors2/unix-c/editors/uzap.tar-z) 
  1168.     to binary edit the dist.fs at byte offset 946834; it should be 
  1169.     changed from 81FE8002 to 81FE7F02.  This is the compare for 640K 
  1170.     in the bogus code.  You can look for the pattern 81FE8002 in the 
  1171.     other *.fs files, including fixit.fs, and change it there, if you 
  1172.     MUST use one of them instead.
  1173.     
  1174.     It should be noted that, if you download uzap, you should "touch" 
  1175.     uzap.c, as otherwise, make will try to use lex to create it, and
  1176.     will probably fail.  This is due to the tar extraction order from
  1177.     the uzap tar archive.
  1178.  
  1179.  
  1180. 2.7.3a    I get the error "isr 15 and error: isr 17" on an NE2000 card.
  1181. 2.7.3b    I have some card on IRQ2 and it doesn't work; why?
  1182. 2.7.3c    I am getting lousy performance out of my network card.  What are 
  1183.         some of the other possibilities?
  1184.     
  1185.     The description of this problem is that one of the cards in your 
  1186.     system; most likely the VGA card, is either generating interrupts 
  1187.     or is causing the IRQ 2 to be actively disabled.  The VGA card uses
  1188.     IRQ 2 during vertical retrace to prevent sparklies.
  1189.  
  1190.     One solution would be to plan on not using your Ethernet card until 
  1191.     you have rebuilt the kernel so that it expects it at an interrupt 
  1192.     other than IRQ 2 or 9, re-jumper or reconfigure the card to match the 
  1193.     IRQ you have selected, and enable it.  
  1194.     
  1195.     From time to time, this problem will manifest itself as a general
  1196.     tendency of the network card to transfer either very sporadically
  1197.     or very slowly. It is precisely the same problem.
  1198.  
  1199.     James Van Artsdalen (email at james@bigtex.cactus.org) has given us 
  1200.     a solution:
  1201.     
  1202.     --------------------------------------------------------------------
  1203.     Some VGA cards use IRQ 2 for a vertical retrace interrupt.  Even 
  1204.     when the interrupt is not enabled in the VGA, some cards drive 
  1205.     IRQ 2 inactive instead of leaving the signal tristate.
  1206.  
  1207.     If this is the problem, you can use Scotch tape to cover the IRQ 2 
  1208.     signal on the VGA's ISA connector.
  1209.     --------------------------------------------------------------------
  1210.     
  1211.     There has been some discussion as to whether scotch tape is really 
  1212.     appropriate inside a card slot.  My answer would be "yes".  This is 
  1213.     because the alternate solution of cutting the trace on the video 
  1214.     board seems, to my mind, to reduce the value of the board.  It is 
  1215.     possible that, in the future, with a bi-bipartite driver, you would 
  1216.     want to catch the retrace interrupt to get rid of "sparklies" or to 
  1217.     implement a driver for a very high resolution monitor for X.  In 
  1218.     this happens, given a choice between alcohol and solder, I vote for 
  1219.     alcohol.
  1220.     
  1221.     Either way, you will probably find that your VGA card uses IRQ 2
  1222.     strictly for compatibility with older cards.  With the advent of
  1223.     dual-ported memory for video cards, virtually all of these types
  1224.     of problems have disappeared.
  1225.  
  1226.  
  1227. 2.7.4    What is the difference between IRQ2 and IRQ9?  Are they really
  1228.     the same, or are they really different?  
  1229.  
  1230.     On the XT, there was one interrupt controller, an Intel 8259, which
  1231.     handled 8 interrupts numbered IRQ0 through IRQ7.  IRQs 2 through 7
  1232.     were accessible via bus lines IRQ2 through IRQ7.
  1233.  
  1234.     The AT had two interrupt controllers.  Due to the design of the 
  1235.     8259, one has to be the master and the rest (up to 8) must be 
  1236.     slaves.  Each slave controller output its interrupt request to 
  1237.     and input on the master controller.  In the case of the AT, the
  1238.     master controller handles IRQ0 through IRQ7.  The slave handles
  1239.     IRQ8 through IRQ15.  The interrupt request from the slave to the
  1240.     master goes through IRQ2, which is termed the cascase input.
  1241.  
  1242.     This means. of course, that the bus line for IRQ2 could no longer
  1243.     be used for external interrupts.  Instead, the bus line that WAS
  1244.     IRQ2 in the XT became IRQ9 on the AT.  This whole issue is 
  1245.     confused further by the fact that some vendors refer to this
  1246.     external interrupt as IRQ2, while others refer to it as IRQ9.  In
  1247.     either case, if you are talking about an external interrupt, it
  1248.     means the same thing.
  1249.  
  1250.     BTW, IRQ8 is used for the Real Time Clock, and does not have an
  1251.     external interrupt.  Here is a map, in case anyone still needs it:
  1252.  
  1253.         Internal    External    Function
  1254.         IRQ0        n/a        Refresh/Timer
  1255.         IRQ1        n/a        Keyboard
  1256.         IRQ2        n/a        Cascade Input to Master
  1257.         IRQ3        IRQ3        Free (Com port)
  1258.         IRQ4        IRQ4        Free (Com port)
  1259.         IRQ5        IRQ5        Free 
  1260.         IRQ6        IRQ6        Free
  1261.         IRQ7        IRQ7        Free (Printer)
  1262.         IRQ8        n/a        Real Time Clock
  1263.         IRQ9        IRQ2        Free (Network card)
  1264.         IRQ10        IRQ10        Free
  1265.  
  1266.         etc.
  1267.  
  1268.  
  1269. 2.7.5    Some of my SCSI devices (like a tape drive) don't work; why?
  1270.     
  1271.     That is because the original SCSI drivers didn't recognize any 
  1272.     devices past the first two (ID 0 and ID 1).  Also, there was a bug 
  1273.     in the distribution floppy regarding the devices at ID 6.  The 
  1274.     'dev' files for that id need to be remade.  Use MAKEDEV to do that.
  1275.  
  1276.     The disks and tapes will be recognized and configured when they 
  1277.     are first accessed. 
  1278.     
  1279.     A new and improved SCSI driver has been written by Julian Elischer 
  1280.     and is available from many sources.  It includes support for many 
  1281.     new types of SCSI controllers and many devices that are thereby 
  1282.     attached.  This driver is included in the patchkit.
  1283.  
  1284.     In addition, many of these types of devices are supported in 
  1285.     FreeBSD and NetBSD.  If one of the devices you are interested
  1286.     in using is not supported in 386BSD, you might try one of these
  1287.     newer systems.
  1288.  
  1289.  
  1290. 2.7.6    I try to run 'ps' or 'w' and get ': cannot get namelist'
  1291.     from the TinyBSD kernel.  What did I do wrong?
  1292.  
  1293.     Nothing.  There is a class of programs that interact directly with 
  1294.     the current kernel.  These programs include 'ps', 'w', 'uptime', and 
  1295.     others.  The shell on the TinyBSD disk is not capable of supporting 
  1296.     these programs because the symbol table that these programs use has 
  1297.     been stripped out of the kernel to save space.  The easiest way to 
  1298.     fix this is to get a  different kernel (build it yourself, or from 
  1299.     agate.berkeley.edu or one of the other FTP sites).  Of course, you 
  1300.     can have a fully functional system with these programs, but they are 
  1301.     nice to have.  
  1302.  
  1303.  
  1304. 2.7.7    I get a 'Floating point constant out of range' when I try to compile
  1305.     package 'n'.  What is broke?
  1306.  
  1307.     This problem was encountered during many package compilations, 
  1308.     including compiling gcc-2.3.3 under NetBSD-0.8.  
  1309.  
  1310.     NetBSD-0.9, and presumably FreeBSD, contain a repaired printf()
  1311.     function, which corrects this problem.  The easiest solution for
  1312.     this (and MANY other) problems is to upgrade.  In addition, these
  1313.     systems also include gcc-2.3.3 (or newer) as the default compiler.
  1314.  
  1315.     There is also a circular dependency for protoize.o/unprotoize.o 
  1316.     in the Makefile. Add the lines
  1317.  
  1318.           touch protoize.o
  1319.           touch unprotoize.o
  1320.  
  1321.     after the line:
  1322.  
  1323.           touch stamp-proto
  1324.  
  1325.     After this "make bootstrap" will run to completion.
  1326.  
  1327.     gas apparently has bugs too.  It should produce +Infinity.  I 
  1328.     think it is OK internally but it may be trusting the library 
  1329.     too much.  gcc can easily be changed to avoid printf for output, 
  1330.     but input is harder.
  1331.  
  1332.      One of the problems is that various pieces of code rely on the
  1333.      value of DBL_MAX.  A kludge to fix it is to change the line
  1334.      below:
  1335.  
  1336.     #define DBL_MAX         1.7976931348623157E+308
  1337.  
  1338.     One value that works is
  1339.  
  1340.      #define DBL_MAX         1.7976931348623147E+308
  1341.                                             ^ was 5
  1342.  
  1343.     This is a kludge, but it does mostly work.
  1344.  
  1345.  
  1346.     The problem is entirely in printf() (really in cvt()), NOT in
  1347.     atof().  I have inspected the output of atof() bit by bit, and 
  1348.     it is well within IEEE specification.
  1349.  
  1350.     The digits `157' are the `best' approximation.
  1351.  
  1352.     The code for printf() generates a representation which is not even 
  1353.     in the range of doubles.  Below are the details:
  1354.  
  1355.     atof("1.7976931348623157e+308") returns 
  1356.     
  1357.          0x7fefffffffffffff
  1358.  
  1359.     which is the maximum double value and is correct.  However, 
  1360.     printf() of the previous yields `1.7976931348623168e+308', which 
  1361.     isn't even within the floating point range.  It is clearly printf() 
  1362.     that is broken, and a quick inspection of the code is enough to 
  1363.     determine that it uses a pessimal algorithm.
  1364.  
  1365.     atof() has been tested with many other values, and it has never 
  1366.     been off by more than is allowed by IEEE 754 (though it is not 
  1367.     optimal).
  1368.  
  1369.  
  1370. 2.7.8    I want to use the Adaptec 1542C SCSI controller.  What are the 
  1371.     problems/tricks you need to know to get it working?
  1372.  
  1373.     The first thing to check when trying to use the 1542C is the setting 
  1374.     of 'Enable Disconnection' under the 'SCSI Device Configuration' 
  1375.     menu.  It should be set to YES for all devices, as the manual warns 
  1376.     you. 
  1377.  
  1378.     Matthias Urlichs (urlichs@smurf.ira.uka.de) has provided this 
  1379.     description of the types of things that can cause problems for the
  1380.     controller and devices attached to it.
  1381.     
  1382.     The problem is that the Adaptec 1542C has (a) rather powerful line 
  1383.     drivers, and (b) is sensitive to transient signals which can be 
  1384.     induced by them via either a bad cable or a bad external terminator.
  1385.  
  1386.     A bad cable is almost any cable which doesn't meet SCSI-2 specs.
  1387.  
  1388.     A bad external terminator is one which doesn't adequately buffer 
  1389.     its resistor network.
  1390.  
  1391.     So...
  1392.  
  1393.     - Remove the internal terminator from the last drive in your chain. 
  1394.       Replace with an active SCSI-2 external terminator.  Side 
  1395.       improvement: active terminators consume a bit less power.
  1396.  
  1397.     - Check cables.  Specifically, some cables carry less than the 
  1398.       nominal 50 signal wires. Manufacturers sometimes think they can 
  1399.       get away with this because almost all odd-numbered pins are GROUND 
  1400.       anyway. So, if pins 1 and 3 or 3 and 5 are connected, you're 
  1401.       likely to have a marginal cable.
  1402.  
  1403.     - Make sure that the terminator power is supplied by all devices 
  1404.       and that the power pin is actually connected on your cable. The 
  1405.       problem here is that some idiot device manufacturers save on 
  1406.       2-cent diodes, which means that the thing will pull terminator 
  1407.       power to ground if it's not plugged in.  (Two of these on one 
  1408.       bus are even worse.)
  1409.  
  1410.     - Consider creating your own cabling. Take a 50-wire flat ribbon 
  1411.       and press the appropriate connectors onto it in precisely the 
  1412.       right places. (Move your devices as to minimize cable length.) 
  1413.       Be aware that if a device has two external connectors, you must 
  1414.       take the SCSI bus in at one connector and out at the other 
  1415.       -- don't leave the other connector dangling; this isn't within 
  1416.       the SCSI specs because the cable usually is too long.
  1417.  
  1418.     - Better but more expensive: use 2-twisted cable. (I.e., wires 1&2 
  1419.       are twisted around each other, wire 3&4, ...) This will improve 
  1420.       reliability because the wires are twisted at different rates. 
  1421.       These cables have short non-twisted segments every 50 cm (1.5') 
  1422.       so that you can press on your connectors instead of heating up 
  1423.       that soldering iron.
  1424.  
  1425.     - While you're rebuilding your system anyway...: If you have more 
  1426.       than one drive per power supply, check if these drives have 
  1427.       adequate condensors to buffer their power.  I have two 80-MB 
  1428.       Seagates which refused to work more than a few hours without 
  1429.       glitches -- then I soldered two 10-uF Tantals onto their power 
  1430.       connector and they've been flawless ever since.
  1431.  
  1432.     The terminator power is pin 26. Be aware that SCSI counts pins as 
  1433.     they appear on a ribbon cable, not as they're sometimes numbered 
  1434.     on the connectors.  Pin 25 is supposed to be disconnected.
  1435.  
  1436. 2.7.9    Did anyone ever find out on how to use the 3c509 etherlink III 
  1437.     card yet for bsd?
  1438.  
  1439.     Herb Peyerl (hpeyerl@fsa.ca) responds:
  1440.  
  1441.     I have a mostly working 3c509 driver that I've been working on 
  1442.     for far too long.  There are a couple of problems with it that 
  1443.     I've addressed (in my mind mostly).  I have several things I have 
  1444.     to do before I can go back to working on it (mostly Windsurfing, 
  1445.     waterskiing, suntanning, climbing, and drinking)...
  1446.  
  1447.     I have yet to look at the recently announced Linux 3c509 driver 
  1448.     but plan to do that to see if it can address any of the problems 
  1449.     that I'm having.
  1450.  
  1451.     I always offer to give out my existing code on the off chance i
  1452.     that someone has more energy and time than I do to get it working.
  1453.     But invariably I end up getting requests to photocopy and mail my 
  1454.     documentation which is something I'm tiring of doing.
  1455.  
  1456.     So, to everyone who's waiting for a 3c509 driver, I say "keep 
  1457.     waiting, it'll happen someday"...
  1458.  
  1459.  
  1460. 2.8    Other common problems that are attributed to the installation
  1461.     process but are caused other places.
  1462.     
  1463. 2.8.1    Why don't the man pages for "magic" and "file" work?
  1464.  
  1465.     The manual page for magic and file all have two dots before the 
  1466.     commands,  e.g.. "..SH" it should be ".SH" just delete one of the 
  1467.     double dots in the whole file and then it will work.  These man 
  1468.     pages are fixed by both the patch-kit, NetBSD, and FreeBSD.  The
  1469.     only time this problem every occurs is when you are using the
  1470.     distribution from one of the old CD-ROM distributions are get the
  1471.     original 386bsd 0.1 release.
  1472.  
  1473.  
  1474. 2.8.2    Why is apropos broke?
  1475.  
  1476.     The Makefile in /usr/othersrc/share/man/Makefile creates the 
  1477.     whatis.db.  The problem is that it doesn't strip the backspaces in 
  1478.     the title and apropos can't handle that.  So add a "col -b" to strip 
  1479.     those.
  1480.  
  1481.     excerpt from the Makefile.
  1482.  
  1483.     makedb:
  1484.        for file in `find /usr/share/man -type f -name '*.0' -print`; do \
  1485.         sed -n -f /usr/share/man/makewhatis.sed $$file; \
  1486.        done | col -b | sort -u > whatis.db
  1487.        install -o ${BINOWN} -g ${BINGRP} -m 444 whatis.db \
  1488.                   ${DESTDIR}/usr/share/man
  1489.  
  1490.     This problem is also solved in the patchkit, and other *BSD releases.
  1491.  
  1492.     Also, if the Makefile is moved to the /usr/share/man directory, the 
  1493.     whatis.db will reside where it needs to eventually reside, and the 
  1494.     install will wipe it out.  An easy fix for that problem is to change 
  1495.     the two references of whatis.db in the excerpt above to 
  1496.     /tmp/whatis.db.  This will ensure the file is correctly built and 
  1497.     installed.
  1498.  
  1499.  
  1500. 2.8.3    I want to use more than 16 Megabytes of memory.  Will any of the 
  1501.     Net/2 derived BSD systems support it?
  1502.  
  1503.     Early on, 386bsd 0.1 would choke radically on any system that had
  1504.     more than 8M of memory.  With the advent of the patchkit, this 
  1505.     problem was, for the most part, solved; memory could then expand to
  1506.     the 16M limit inherent in the ISA bus.
  1507.  
  1508.     As people started using VESA and EISA busses, however, attempts 
  1509.     were made to push the envelope even further.  Memory limits have 
  1510.     expanded seemingly without limit.  Since the EISA bus (for example) 
  1511.     has 32 address lines, it is capable of supporting more memory than 
  1512.     the ISA bus with its 24 address lines.  While the 386 and 486 are
  1513.     capable of addresses up to 4 Gigabytes (considerably more than the 
  1514.     ISA bus allows) the ISA bus is still the primary limitation.
  1515.  
  1516.     When using NetBSD and FreeBSD, there is no SOFTWARE limitation on 
  1517.     more than 16Meg of memory.  There are still hardware limitations.
  1518.     The limit is caused by DMA controllers which copy memory images
  1519.     around the system.  Many cards which people use in VESA and EISA
  1520.     machines either emulate ISA cards (in order to work with *BSD) or
  1521.     are really ISA cards.  
  1522.  
  1523.     Jordan K Hubbard (jkh@thrush.lotus.com) has provided this 
  1524.     explanation of the distinction:
  1525.  
  1526.  
  1527.     Just so long as you're using a DMA-using disk controller in EISA 
  1528.     mode, rather than ISA mode, you can use more than 16 Meg of memory.
  1529.  
  1530.     For those who may find such a distinction confusing, let me explain:
  1531.  
  1532.     You can use an ISA controller (such as an Adaptec 1542) in an EISA
  1533.     machine, but as it will still think it's in an ISA box and refuse to
  1534.     use the extra address lines, this is no different than having an
  1535.     ISA machine as far as >16MB is concerned.
  1536.  
  1537.     You can use an EISA controller in "ISA mode", meaning it uses the
  1538.     older protocols for compatability reasons (examples being Adaptec 
  1539.     1742 in "standard" mode, DTC 3290 in "Adaptec" mode, etc) and 
  1540.     again, does not use the extra address lines.
  1541.  
  1542.     The only way to get full EISA, 32MB-of-memory-and-everything, mode 
  1543.     is to use an EISA controller in full EISA mode (for Adaptec 1742, 
  1544.     this is "enhanced" mode, for DTC 3290 it's "DTC" mode).
  1545.  
  1546.     - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  1547.  
  1548.     In addition, several other types of EISA controllers which do NOT
  1549.     use DMA will not cause problems.  IDE, ESDI, and RLL controllers
  1550.     are examples of this type of card.  The discussion above also applies
  1551.     to VESA and VLB cards. 
  1552.  
  1553.     So, the bottom line is that you are limited to the amount of memory
  1554.     that your DMA equipped devices can access.  Once again, the weakest
  1555.     link is the strength of your machine.
  1556.  
  1557.  
  1558. 2.8.4    I tried to use a device in my computer that should be there.  When 
  1559.     I did, I got a "Device not configured error."  What do I do now?
  1560.  
  1561.     Garrett A. Wollman (wollman@emba.uvm.edu) provides us with this
  1562.     brief discussion in answer to a specific question.  It wears well
  1563.     as a generic answer as well.
  1564.  
  1565.     When any program tells you ``Device not configured'', it's trying 
  1566.     to tell you something very important about what you tried to do:
  1567.     namely, that the device you tried to access is not configured 
  1568.     into the running operating system.  This is the error message 
  1569.     corresponding to ENXIO.
  1570.  
  1571.     There are three major causes for this error:
  1572.  
  1573.     1) The kind of device you requested was not configured into the
  1574.        system.  This is Robert Wheeler's problem; the generic kernels 
  1575.        are not distributed with the Berkeley Packet Filter enabled by 
  1576.        default.  To correct this, you must add the appropriate device or
  1577.        pseudo-device to your kernel configuration file and recompile.  
  1578.        (In this particular case, `pseudo-device bpfilter
  1579.        number-of-network-interfaces'.)
  1580.  
  1581.     2) The kind of device you requested was configured into the system,
  1582.        but either the device you requested is would use more than the
  1583.        maximum you configured into the system, or if a physical device,
  1584.        was not found during autoconfiguration.  To solve this, either
  1585.        change your configuration file, or change the I/O settings on the
  1586.        device to match what the file says.
  1587.  
  1588.     3) The major or minor device number specified by the device's
  1589.        entry(ies) in /dev is incorrect.  To solve this, re-MAKEDEV the
  1590.        device (read the MAKEDEV script for more details).  Hopefully
  1591.        whatever change caused the kernel's internal device tables to get
  1592.        changed also updated your MAKEDEV script; otherwise, you will have
  1593.        to grovel through the kernel to see what is going on.
  1594.  
  1595.